local soundId = {
	BGM 			= SoundMgr.getIndex();
};

local soundMap = {
	[soundId.BGM]						= "res/sound/ddz/music/bgm.mp3";
};

local function addChatEffect( num )
	for i = 1, num do 
		local index = SoundMgr.getIndex()
		soundId["CHAT_" .. i .. "_M"] = index;
		soundMap[index] = "res/sound/ddz/effect/chat/chat_" .. i .. "_m.wav";

		index = SoundMgr.getIndex()
		soundId["CHAT_" .. i .. "_W"] = index;
		soundMap[index] = "res/sound/ddz/effect/chat/chat_" .. i .. "_w.wav";
	end
end


local function addCardEffect()
	for i = 1, 17 do 
		if i ~= 14 and i ~= 15 then 
			local index = SoundMgr.getIndex()
			soundId[i .. "_M"] = index;
			soundMap[index] = "res/sound/ddz/effect/card/" .. i .. "_m.wav"

			index = SoundMgr.getIndex();
			soundId[i .. "_W"] = index;
			soundMap[index] = "res/sound/ddz/effect/card/" .. i .. "_w.wav"

			index = SoundMgr.getIndex();
			soundId["DOUBLE_" .. i .. "_M"] = index;
			soundMap[index] = "res/sound/ddz/effect/card/double_" .. i .. "_m.wav";

			index = SoundMgr.getIndex();
			soundId["DOUBLE_" .. i .. "_W"] = index;
			soundMap[index] = "res/sound/ddz/effect/card/double_" .. i .. "_w.wav"; 
		end
	end
end

--addChatEffect(7);
--addCardEffect();


SoundMgr.setSoundInfo(soundId, soundMap);